package router

import (
	"github.com/gin-gonic/gin"
	"zg6/zk1/doctor-management/api/internal/handler"
)

func LoadRouter(r *gin.Engine) {

	apiRouter := r.Group("api")
	{
		doctorRouter := apiRouter.Group("doctor")
		{
			doctorRouter.POST("login", handler.DoctorLogin)
			doctorRouter.GET("list", handler.Plist)
			doctorRouter.GET("info", handler.PInfo)
		}
	}
}
